package com.yike.user.service;

import com.yike.common.vo.LoginUserInfoVo;
import com.yike.user.param.AgentBindPhoneParam;
import com.yike.user.param.AgentBindWxParam;
import com.yike.user.param.GetAppCodeParam;
import com.yike.user.param.LoginParam;

import javax.servlet.http.HttpServletResponse;

/**
 * @author Sakura
 * @date 2024/8/20 10:27
 */
public interface LoginService {

    LoginUserInfoVo login(LoginParam loginParam) throws Exception;

    LoginUserInfoVo agentBindPhone(AgentBindPhoneParam agentBindPhoneParam) throws Exception;

    boolean getWxPhone(String code) throws Exception;

    String agentBindWx(AgentBindWxParam agentBindWxParam) throws Exception;

    boolean getMchWxPhone(String code) throws Exception;

    boolean getAgentWxPhone(String code) throws Exception;

    String getAppCode(GetAppCodeParam getAppCodeParam) throws Exception;

    void download(HttpServletResponse response, String code) throws Exception;
}
